package com.ijiuchuang.jc_localization.contract;

import com.ijiuchuang.jc_localization.bean.lite.Tag;
import com.ijiuchuang.jc_localization.base.BasePresenter;
import com.ijiuchuang.jc_localization.base.BaseView;

import java.util.List;

import rx.functions.Action1;

/**
 * Created by Veev on 2016/6/16
 *
 * @link 384506557@qq.com
 */
public interface DeviceListContract {

    interface View extends BaseView<Presenter> {
        void setDatas(List<Tag> datas);
    }

    interface Presenter extends BasePresenter {
        void setDatas();
        void deleteData(Object tag);
        void changeName(Tag tag, String name);
    }

    interface Model {
        void getDatas(Action1<List<Tag>> action1);
        void deleteData(Object tag);
        void changeName(Tag tag, String name);
    }
}
